package com.sms.graduate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sms.graduate.entity.SmsWork;
import com.sms.graduate.entity.dto.WorkDTO;

import java.util.List;


public interface SmsWorkService extends IService<SmsWork> {

    Boolean addWork(WorkDTO workDTO,String usercode);

    SmsWork selectWorkByName(String usercode,String name);

    Boolean selectWorkByTime(String workName);

    Boolean deleteWorkById(Integer id);

    SmsWork selectWorkById(Integer id);
    List<SmsWork> workListByTeacherCode(String teacherCode);

    void addSubmitNum(String workName);

    Boolean updateWork(SmsWork smsWork);

    /**
     * 通过工号去查询发布的作业
     * @param teacherCode
     * @return
     */
    List<SmsWork> workList(String teacherCode);

    /**
     * 学生去查询作业
     * @param list
     * @return
     */
    List<SmsWork> studentWorkList(List<String> list);
}

